package mappingBD;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


public class SalleDeDiscussion implements Serializable {
	
	private static final long serialVersionUID = -7141386076665097236L;
	String nomSalle;
	String description;
	List<Client> listAbonnes;
	List<Message> listeMessages;
	Client clientFaitRequete;
	String pseudoCreateur;
	String type;
	
	public SalleDeDiscussion(String nomSalle, Client clientFaitRequete){
		this.nomSalle = nomSalle;
		this.clientFaitRequete = clientFaitRequete;
	}
	public SalleDeDiscussion(String type, String nomSalle, Client clientFaitRequete){
		this.type = type;
		this.nomSalle = nomSalle;
		this.clientFaitRequete = clientFaitRequete;
	}
	
	public SalleDeDiscussion(String type, String nomSalle, String description){
		this.type = type;
		this.nomSalle = nomSalle;
		this.description = description;
		listAbonnes = new ArrayList<Client>();
		listeMessages = new ArrayList<Message>();
	}
	
	public SalleDeDiscussion(String type, String nomSalle, String description, Client clientFaitRequete){
		this.type = type;
		this.description = description;
		this.nomSalle = nomSalle;
		this.clientFaitRequete = clientFaitRequete;
		listAbonnes = new ArrayList<Client>();
		listeMessages = new ArrayList<Message>();
	}
	
	public SalleDeDiscussion(String nomSalle, String description, List<Client>listAbonnes,List<Message> listeMessages, String pseudoCreateur ){
		this.description = description;
		this.nomSalle = nomSalle;
		this.listAbonnes = listAbonnes;
		this.listeMessages = listeMessages;
		this.pseudoCreateur = pseudoCreateur;
	}

	//GETTERS AND SETTERS
	public String getNomSalle() {
		return nomSalle;
	}

	public void setNomSalle(String nomSalle) {
		this.nomSalle = nomSalle;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<Client> getListAbonnes() {
		return listAbonnes;
	}

	public void setListAbonnes(List<Client> listAbonnes) {
		this.listAbonnes = listAbonnes;
	}

	public List<Message> getListeMessages() {
		return listeMessages;
	}

	public void setListeMessages(List<Message> listeMessages) {
		this.listeMessages = listeMessages;
	}

	public Client getClientFaitRequete() {
		return clientFaitRequete;
	}

	public void setClientFaitRequete(Client clientFaitRequete) {
		this.clientFaitRequete = clientFaitRequete;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
